<?php
namespace common\modules\system\models\query;

use common\helpers\Constants;

/**
 * This is the ActiveQuery class for [[\common\modules\system\models\DataDictionary]].
 *
 * @see \common\modules\system\models\DataDictionary
 */
class DataDictionaryQuery extends \yii\db\ActiveQuery
{

    public function active()
    {
        $this->andWhere([
            'status' => Constants::STATUS_ENABLE
        ]);
        return $this;
    }

    /**
     * @inheritdoc
     *
     * @return \common\models\DataDictionary[]|array
     */
    public function all($db = null)
    {
        return parent::all($db);
    }

    /**
     * @inheritdoc
     *
     * @return \common\models\DataDictionary|array|null
     */
    public function one($db = null)
    {
        return parent::one($db);
    }
}